package com.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class UserController {
    @RequestMapping("/save")    //@TODO：访问路径
    @ResponseBody               //TODO：返回json数据
    public String save() {
        System.out.println("user save...");
        return "springMVC";
    }
}
